@import "fontsize-and-color.scss";

header {
    width: 100%;
    min-width: 1226px;
    height: fit-content;
    background-color: #333;

    .container {
        width: 1226px;
        min-width: 1226px;
        margin: 0 auto;

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;

            .left-list {
                display: flex;
                flex-direction: row;
                justify-content: flex-start;

                li {
                    display: flex;
                    align-items: center;

                    a {
                        @include font-small();
                        color: $secondary-text-1st;
                        position: relative;

                        &:hover {
                            color: #fff;
                        }

                        &:hover .dload-app {
                            height: 170px;
                        }

                    }
                }
            }

            .right-list {
                display: flex;
                align-items: center;

                ul {
                    display: flex;
                    flex-direction: row;
                    justify-content: flex-start;
                    align-items: center;

                    li {
                        display: flex;
                        align-items: center;

                        span {
                            font-weight: bold;
                        }

                        a {
                            @include font-small();
                            color: $secondary-text-1st;

                            &:hover {
                                color: #fff;
                            }
                        }
                    }
                }

                .shop-car {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    height: 40px;
                    background-color: $main-text-2nd;
                    margin-left: 10px;
                    padding: 0 16px;
                    cursor: pointer;
                    position: relative;
                    z-index: 10;

                    .iconfont {
                        font-size: 14px;
                        color: $secondary-text-1st;
                        margin-right: 6px;

                        &+a {

                            display: block;
                            @include font-small();
                            color: $secondary-text-1st;

                            span:lang(en) {
                                font-size: 12px;
                                font-family: Poppins, sans-serif;
                            }
                        }
                    }

                    .shop-list {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        height: 0px;
                        width: 316px;
                        background-color: #fff;
                        box-shadow: 0 2px 10px rgba(00, 00, 00, .15);
                        position: absolute;
                        top: 39px;
                        right: 0;
                        z-index: 10;
                        overflow: hidden;
                        transition: .5s;

                        p {
                            @include font-small;
                            color: $main-text-1st;
                            opacity: 0;
                            animation: text-loading 2.6s linear;
                            animation-timing-function: step-end;
                            animation-fill-mode: forwards;
                        }

                        @keyframes text-loading {
                            0% {
                                opacity: 0;
                            }

                            100% {
                                opacity: 1;
                            }
                        }

                        .loading-anime {
                            position: absolute;
                            margin: 0 0;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            z-index: -1;

                            span {
                                display: inline-block;
                                height: 0px;
                                width: 5px;
                                background-color: $mi-theme-color;
                                margin-right: 5px;
                                animation: loading 1.5s linear;
                                animation-fill-mode: both;

                                &:nth-child(2) {
                                    animation: loading 1.5s linear;
                                    animation-delay: .5s;
                                }

                                &:last-child {
                                    animation: loading 1.5s linear;
                                    animation-delay: 1s;
                                }
                            }

                            @keyframes loading {

                                0%,
                                100% {
                                    height: 0;
                                    opacity: 0;
                                }

                                50% {
                                    height: 20px;
                                    opacity: 1;
                                }
                            }
                        }
                    }

                    &:hover {
                        background-color: #fff;
                    }

                    &:hover .iconfont {
                        color: $mi-theme-color;
                    }

                    &:hover a {
                        color: $mi-theme-color;
                    }

                    &:hover .shop-list {
                        // display: flex;
                        height: 100px;
                    }
                }
            }
        }
    }
}